package com.zhkj.txg.utils

import android.animation.ObjectAnimator
import android.widget.ProgressBar

fun ProgressBar.animate(progress: Int, duration: Long) {
    ObjectAnimator.ofInt(this, "progress", 0, progress).apply {
        setDuration(duration)
    }.start()
}